create function to test system