implement var's define & read