removal of unnecessary statement