generation of code reset
finished stuff