updated
added act_col function