publish method finally worked out; inputs all working; publish!