made a finish function
used dev_branch for extendability