fix the helper l function