added main for testing