wrote ll function for 2.1/2.2