add credits function