modified centrX and centerY