change isEqualToString to compare