tried to fix light dimension generation