added function to initially fill trigger row