changed variable names on cores for ticket block, to avoid confusion/errors from variable scope