extending eventEmitter