give the correct arguments to getattr