fixed all namespace calls of function