$connect variable is unnecessary