organized code by adding partials