[FIX] changed merge function to private