update Build method