started lr implementation