SEGFAULT problem solved