fuctions for bias in bins are ready, testing in progress