nit: no need for extra space