made use of fn abstraction in other fn