preparations for pretty printing