edit deploy function