forgot to uppercase the lb_type variable