for loop dictionaries, printcredit function