adapted to miniAOD with prescales