modified for tjcoin