split into function.
Give update data.
pep8.