init cj to zero