put comment objects into a function