use finally instead of except