refactor to add per quarter plot