update and find by id works