output function added

update 2013-03-22 18:35