remove console.log() call from length() method