add dtype and shape helper functions