more rect functions