changing datastruct