fixed missing size calculations