made the listener act as formatter