migrating bother window functions to profileStorage and saving bother window hashmap into storage