changed index function 

added id in required function