removed length in condition