needed to send data as well, program was neglecting that
fixing compiler errors