adding sci function