decrypt the logic