added const to a ptr