oops and here's the main script