updated scripts for nb and position
changed the scripts for nb