Added ternary operator
Refactored changeEntries
Refactored changeSpotsIn