Updated public= method: fixed id error and rollback to original version.