second version
not outputting