code for competition