solves reset problem