before refactoring

The cord which seems to work definitely.