handled case where length of properties is empty