hopefully fixes meory leak