first working version, used for ID.