update snapshot dependencies and code style