copied over from competition code

12/4/14