complet function
robin function