finish the condition for perfect focusing