resolvi o segfault