adapt for erian323