changes to LL1 calculation