sort of working join