this is the code for competitions