modularized the glossy version