fixes secondary constructors