removed size calc functions