removed assert about length