changed type of do_assemble() parameter to set