add sagest function.