some modification on the template input