assert size in proper place