minor nit optimization