changed deploy method