minor perf improvement