connecting everything together