added initFromParams