causing my machine to seg fault. idk why