result function declaration and calling those function