fixed semantics segfault bug
trying to make native output