added credits functionality