changed initiation for chart