changing join functions