eliminate memcpy, use one kernel do this instead