fixes logic for 100%