remove unnecessary statement