added length to parameter