updated toi value - will now find nearest scalar to specified toi.