added reflectance on edge code