added competition functionality.