reduce the variable for view