fixed use of sed