finished the unfinished code last night