add new function for competition