making method send thread-safe