FIX: markup ref in function