removing extra statements