add log and do assembly