small perf optimization