added pretty print for testing