added devi function