switch to TypedData macros for allocation