refactored some function into time slices itself
semicharmedlife