updated l_in and h_in