chaged struct to short type