minimal generic window functions