struct doesnot work