inclusive for 0 and 1