gpu and cpu seem to work correctly now