first algorithm for self.sizer