getting seg fault with level 3