set conditional on update