output create 2

added new helper function