check pointer