finish part of the template