polishing potential code