adding version to the right place