made function to test in other file