arglen logic added