main spree function clarified