fixed a lot of syntax but now there's a duplication error???