added TODO to length method