added decrypt method