implement head using sed