clemens's code