rectangle adjustment