normalize viewport functional