fixed errors in builder