consider aw value when calculating max wend