fixed model assignment