added function get_windows() ot util.c