view model attr checking