removed bci_functions.R -KL