check for variable first (#13)