also check for ptr