added assert
trying to fix join error