changed the few overlooked *int that need to be changed to []int