implement decrypt function