remove demo in functional code