added 1.0 version of bgjoin