change printf to echo