createConnection MEthod does no need any argument so removing the argument