fix unfinished function to not error out