add if statement if location not found