add logically equals to methods