MAke sure rev is integer so it can increment