some changes to improve zbuffer lines but still bugs