minor perf improvment