credits conditions working properly