doesnt seg fault emediatly