update deploy method