fixed search and learned how to update attributes