clear bug fix, size and forEach added
lint fixes