add reset fuction