make 0 based by default