making event.relative more robust