improve logic of wahsing post