fixed type checking and L arg