O(n^2) -> O(n)

Yeah I fixed stupid plans