ofcands little optimization