accomodated for inconsistencies in database in API