added model check