fix dates and remove useless values