add release logic