change preimage training to using logs