worked on zbuf