pointer check