added call to main for testing.