still getting seg fault error