add insertRecrods
change scope of trigger method