fixed -Wsemicolon-before-method-body warnings