modified script for IBD NE