added computeLength, haven't debugged yet...