saved progress sofar and created switch