added method for reset pointer