fix lint errors and update min