took out call to main for testing