changed pujetId algorithm