Coding problem with newest connections update