added type for delta x and delta y