add some helping methods in order for wallet