synchronized free code v 2.