pack function works, splitRows still buggy