Sledge #1 why Body2 You need two stars referenced to check the distance between each one and all of the rest. That's why he Continues when body=body2... there's no point checking the distance between a star and itself.EDIT: Whoops... Gab pips me to it!