changed paths \ to /, changed math type to double, removed rectangle.position and rectangle.size