fixed the decrypt method