ADDED function to get box sizes