working version
coordinates logic, WIP error in empty entry