add some code for decrypt