removed potential segfault