first init
add z axis check