now actually using the foreach T_T