lab optimization