change in print credential function