working on rectangle