slightly optimize Lab