this is with connection class