satellites() function definition moved