inlinening + size_t conversion warning fix