add pointers to function for getting types