fixed communicating function. There is a difference between using find_by versus where