changed echo to get consistent results