method findById not working