clean up styles and functions