update for sub statement protection