add save function & fixed post filter