lib func implemented.