scanner and output templates completed