Removing unnecessary statement in modular input