functional style - thank you venkat