i've reverted this and instead changed `l` to be `int` instead of `size_t`.