adding deploy function