calculate s and o terms separately