using system instead of sed