working on tuping function application