optimize and stylize