clean up styles and populate severities