put data first in assignCache so we can pipe data in