fixed applyLimits(); added windowData()