pointer test is unreliable