plugging in missing variables