found seg fault and hopefully fixed