split build code from method to fuction...