model query modified