implemented parsing size