adapt for online