add FIELD_SIZE macro to calculate the size of the specified field