fixed bug in size definition