added example, reduce width of code