change prepend(x) to insert(0, x), wasnt working on my install