move reset call
remove background and reformat code