implemented culling, still not working