more aggregation stuff
finished aggregation part, didnt go through the bool proportion since the code is messy and needs refactor
merged with day2