Changed cooridnates to double from int.