added updatet Important parts that need implementation