rewrite post library
fix typo