implemented index schema