replaced deprecated defined(@_) with just @_ to silence deprecation notices