refactored insert and got metas working in funnel