fixed swapped variables and removed Serial output