finish preimage