working version of deals