wallet function added