minor nit: curlies here and inside this loop aren't needed.