needed to send data as well, program was neglecting that