remove improper sizeof use case for pointer