created closure for L line