fix Jans code