release name moved outside if statment