started functional style