check lock direction