removed perfomConnection from main