replace -1 with 1