fix plurality error and remove extra end