slight changes to index and added medsrec