using a struct to transfer data threw command