renamed ptr and ref