update function

it will do everuthing by own don't worry
Merge pull request #2 from sarutheluffy/master

update function