figured out how to remove the return before the last function