populates required fields