Sender prepair function