adding update to rectangle