almost working GPU with host class data structure