added some reset niceness

cleaned up and 'generalised' my variables