merged functions result send1 and 2 and mina1 and 2