roughly finish the template