finish function dev.