separate method for convering the size