building errors fixed