Reference local variables and not ivars

It looks like this method should be referencing its local variables and not the ivars with similar names