added const qualifier to an argument to accept const pointers.