minor removal of unnecessary variables
removed non-competition template version of code