update code for original src change to version 3