* set defaults as function to avoid reference to old attributes