working rectangle drawing