syntax fixing and moved R7 reset