added sincronized to line 127