removed double pointer in function header