FIX: fixed bug in tlineFunctions. need to add tests for these.