modified col_pop function