amended and restated SECURITIES PURCHASE AGREEMENT