updated the code. adil