fixing issue #4 : funtion pointers