added semicolon functionality