forgot to handle templates coming in the presenttemplate method