to compute mass windows