refactoring, formatting, znear/zfar work