new snippet behavior when passing a simple object