moved printing output to 'common'