output with semicolons in correct places

First line had an unnecessary semicolon and other lines were missing
them at the end