add reset function
fixed attrs name
wrote test to integrate .reset()