removes ceil and floor functions in rect height to avoid rectangles bellow base line