remove unneeded unsets