STILL HAS BUG. sync before adding type info check