fixed issue with operator overloading