update logic y/n