minor changes for LEX cipher