renamed base to variables