trying to remove segfaults