trying to make common data types for 3d and kd