why do i only get one warning