returns nil if get credit goes wrong