function with operator