function pointers for other datatypes