if statement so we dont readd same connection