coreccted reset function
fixed reset function again ^^