refactoring, delete hidden inputs