Compare

Why are you assigning to temp here?