added findBy function to mapper