If you get lower marks in the improvement exam then previous marks will be considered. In the case of improvement exams, the best of the two scores are added to the final result.