cli working with function abstraction