adding last var's and testing code