added choice for output