modified build method again