first script, convert [] to link