modified the condition in the view