swap locals for readability, use string comparison