eliminate warning in getview