updated the finished function