final connector code