put operators to friend functions