undefined variables fixed,, latest first order by time

undefined variables fixed
undefined variables fixed,, latest first order by time