finish the markup