still problems with output