working on setting of optional parameters