changed SG_ERROR to REQUIRE in AmariIndex