attempting to fix encryption logic. currently bugs out