added const variables.
update demo.