a little closer to output, still not working