where is credit_selection() function stored