magic vars and lab