fix for the logic is complete function