compare using .equals instead of ==