bug fix equals instead of ==