simij,aravind | #570 | changed id generation logic