fixed removal of pretty function