use -1 instead of 0