slightly off when running multiple iterations