change code to limit total online time behavior