removed potential seg fault