Do this code in index