make sure all data needed is set.