add 3d helper function

workaround until I write one!