test removing pointer