defaults copied to attributes when attributes parameter is undefined