build is passed as a parameter