added functionallity to build units