finalize variables which should be final