modify rectangle