added the release function