made cpuscatter changes to gpuscatter