messing around with pointers to structs
removed comments