removed closure dependency from prettyprint