use of macro to replace sizeof()