adjust logic for the change of csv