make more safety on divida function