deleted unnesessary class, added snapshot function