update for level shifting