fixing typo
updating connect method"