generate contest model
fix factory