Dont use w in query when w <= 1