simplified the std output implementation