improvement with "finally"