Improvements

delete code duplicated in uw_cputop and uw_memtop