refactore contest bean