working version with two local deals