define print inside advancedblocks