added Sortoff solution