make hierarchy in imaging protocol