updated solution for snippets to include new one