working on reset function. fecked things up