deciphering function
fixes