made move_depth a bit clearer