strugling with the right output (not working)