added user pointer fucntions