added  value of top by getting window size