corrected averaging mechanis in ascii plot