changed some stuff but still seg faulting