added triple output possibility