added v13 functionallity, still need to reference all variables