implemented the before converter