lock sequence