solved segsegv