added byIq function to functional interface, to include test