buggy occlusion calculationg