use the insertion operator instead of function