fix in size calculation