salmon's code