rewrote dynamic lighting