v6 TLE!

after a few tries i still got TLE. 

in v4 forgot to set the item in lists which caused an infinite loop
in v5 didn't remove nulls which doesn't matter too much