fix typing in assembleData