adding function call routine