nbif code in progress