equality checking added