updated credit points logic