chaning before deploy to after success