change ROM reference to pointer