added conection between layers