fixes index declaration for importing