enable credit function