using Equals() instead of ==