ticket:2 while making change in ticket#3 found errors and fix it in this commit