removed static keyword in friend def