added utils to do printing