clear code
add a few time profile lines