fix coordinate issue, all tests passing