removed console log and extra characters in index