added print multiple functionality