add time measurement
add ssocr. fixed a divison by 0