cleanup data[view]/dtype logic