changed echo to pirnt_r