added public version2