merge function

merge or split stars object