code to run on corn