remove unneeded get credential function