added decrypt function DRAFT