now outputs to function