fixing problems in text and graphics