bug in multiple output