before directive