fix use of insert(), rename to match with angular