unnecessary variable rectangle removed