changed init to connect for clarity
removed unnecessary vars