added trims and default values