add check for incorrect - i.e. empty result
fixed small bug in content