update classList process
set fn as prototype