added data windowing in PS-estimation