correct deploy method