fixed solution to l3