refactor stars module