moved template before a so that a is still last-child