changed code in index