take out Poisson errors and remove print statements