filter and formatted printing