adding registry for pointer bug fixing