tested and working viewport setting