remove unnecessary semicolons
simplify the variable name "id" creation logic