add decrypt method