getvar before but nicely