in process of debugging seg fault