access function direct && via function pointer
added some comments