adding miniAOD part to main code