worked on calculating size.