another place I wasn't checking for imag