changing rectangle area calculation