adds index to stocks