changed Generate, and added build