update error checking to find pretty print styling