syntax fixes in findBy method