before model