fixing last_m/x/y again