fix toStatements