this seems to miss $var