changes to binomial and main