added size to sorting