cleanup and slightly optimization, lightstyle interpolation