Some rectange funtionality