refactoring getAllTime+ and some callbacks