fixing model setting method