fix to work without ROOT