changed output method