finished coding the basic functionality of LER