changed check for number of bodies to < 2, as the error 'too many bodies' can currently be thrown when len(bodies) == 0