yo dude!

removed variable "i" and replaced it with the already declared "diff" which ultimately served the same purpose as 'i', and self-documents what the if statement is doing