lock input code during run