refactored to have one changing chart instead of five static charts