the puts should probably be removed