fixes resetting