removed possible seg fault