adds index source code