implemented joins
fixed string problem