changes in join operation, modified data structure of the front