trying to extend in z direction as well,issues ordering