modified crosslinking to comply with the new script