made join table work