added completedness functionality