friend operator fixed