required parameter should be placed before optional one