working on log and model