create function for test in todo6