perf improvement, remove unneeded function overhead