array length test added