function closure -- added markers with correct content