implemented @var
added @var to API
fixed @var