modify logic of release