called assignment methods in constructor