use model name from fields instead of hardcoding