generate_history and join2proyect modified