planets : code cleanup