added default value for getattr
updated new file