bug fixed for operator overloading