fixing rolling average, added start of flattener but needs work, don't use