made isGlass default to 0