code from competitions