and then I properly formatted the function instead of just mindlessly copying ahnd pasting it in.