update and delete unused