use correct definition of mx1, my1, mx2, my2