inline some methods, speedup