find id by using params instead of looking up object instance variable