fixed the storage class checking