use dshape in typeof