test variables, update credit